package com.uzai.console.dto.sop.addfanchannel;

import com.uzai.console.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @Auther: liuqi
 * @Date: 2021/8/10 14:58
 * @Description:
 */
@ApiModel("进粉渠道参数")
public class AddFanChannelDto extends BaseDto {

    @ApiModelProperty("主键id")
    private Long id;
    @ApiModelProperty("渠道名称")
    private String name;
    @ApiModelProperty("渠道描述")
    private String info;
    @ApiModelProperty("设备类型")
    private String deviceType;
    @ApiModelProperty("设备唯一id列表")
    private List<Long> deviceUniqueIdList;
    @ApiModelProperty("来源列表")
    private List<Integer> sourceList;
    @ApiModelProperty("开始注册时间")
    private Integer regTimeStart;
    @ApiModelProperty("结束注册时间")
    private Integer regTimeEnd;
    @ApiModelProperty("粉丝成本（元/每个）")
    private Double price;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public List<Long> getDeviceUniqueIdList() {
        return deviceUniqueIdList;
    }

    public void setDeviceUniqueIdList(List<Long> deviceUniqueIdList) {
        this.deviceUniqueIdList = deviceUniqueIdList;
    }

    public List<Integer> getSourceList() {
        return sourceList;
    }

    public void setSourceList(List<Integer> sourceList) {
        this.sourceList = sourceList;
    }

    public Integer getRegTimeStart() {
        return regTimeStart;
    }

    public void setRegTimeStart(Integer regTimeStart) {
        this.regTimeStart = regTimeStart;
    }

    public Integer getRegTimeEnd() {
        return regTimeEnd;
    }

    public void setRegTimeEnd(Integer regTimeEnd) {
        this.regTimeEnd = regTimeEnd;
    }

    public Double getPrice() {
        if(price == null){
            price = 0.00D;
        }
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
}
